﻿using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-设备管理-维修单-xzc
    /// </summary>
    public interface IRepairOrdersServices: IApplicationService
    {
        /// <summary>
        /// 查询维修单
        /// </summary>
        /// <returns></returns>
        Task<List<Repair>> GetRepair(GetRepairDto getrepairdto);
        /// <summary>
        /// 添加维修单
        /// </summary>
        /// <param name="repairdto"></param>
        /// <returns></returns>
        Task<int> AddRepair(RepairDto repairdto);
        /// <summary>
        /// 更新维修单
        /// </summary>
        /// <param name="repairdto"></param>
        /// <returns></returns>
        Task<int> UpdateRepair(RepairDto repairdto);
        /// <summary>
        /// 通过id查询到相关维修单的数据
        /// </summary>
        /// <returns></returns>
        Task<List<Repair>> FindRepair(int id);
        /// <summary>
        /// 删除维修单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteRepair(int id);
        /// <summary>
        /// 批量删除维修单
        /// </summary>
        /// <param name="ids">要删除的维修单ID列表</param>
        /// <returns>删除成功的数量</returns>
        Task<int> BatchDeleteRepair(List<int> ids);
    }
}
